home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / emacs-19.31l < prev    next >
Encoding:
Text File  |  1996-11-16  |  37.9 KB  |  1,149 lines

  1. diff -Nru emacs-19.31/ChangeLog emacs-19.31-linux/ChangeLog
  2. --- emacs-19.31/ChangeLog    Sat May 25 21:30:21 1996
  3. +++ emacs-19.31-linux/ChangeLog    Sun May 26 13:39:37 1996
  4. @@ -1,3 +1,7 @@
  5. +Sun May 26 13:35:53 1996  Erlend Midttun <erlendbm@colargol.idb.hist.no
  6. +
  7. +    * Fixes a few typos
  8. +
  9.  Sat May 25 15:30:10 1996  Karl Heuer  <kwzh@gnu.ai.mit.edu>
  10.  
  11.      * Version 19.31 released.
  12. diff -Nru emacs-19.31/config.guess emacs-19.31-linux/config.guess
  13. --- emacs-19.31/config.guess    Sun May 26 02:17:34 1996
  14. +++ emacs-19.31-linux/config.guess    Sun May 26 12:51:55 1996
  15. @@ -339,24 +339,24 @@
  16.      # first see if it will tell us.
  17.      ld_help_string=`ld --help 2>&1`
  18.      if echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: elf_i[345]86"; then
  19. -      echo "${UNAME_MACHINE}-unknown-lignux" ; exit 0
  20. +      echo "${UNAME_MACHINE}-unknown-linux" ; exit 0
  21.      elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86linux"; then
  22. -      echo "${UNAME_MACHINE}-unknown-lignuxaout" ; exit 0
  23. +      echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0
  24.      elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: i[345]86coff"; then
  25. -      echo "${UNAME_MACHINE}-unknown-lignuxcoff" ; exit 0
  26. +      echo "${UNAME_MACHINE}-unknown-linuxcoff" ; exit 0
  27.      elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68kelf"; then
  28. -      echo "${UNAME_MACHINE}-unknown-lignux" ; exit 0
  29. +      echo "${UNAME_MACHINE}-unknown-linux" ; exit 0
  30.      elif echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations: m68klinux"; then
  31. -      echo "${UNAME_MACHINE}-unknown-lignuxaout" ; exit 0
  32. +      echo "${UNAME_MACHINE}-unknown-linuxaout" ; exit 0
  33.      elif test "${UNAME_MACHINE}" = "alpha" ; then
  34. -      echo alpha-unknown-lignux ; exit 0
  35. +      echo alpha-unknown-linux ; exit 0
  36.      elif test "${UNAME_MACHINE}" = "sparc" ; then
  37. -      echo sparc-unknown-lignux ; exit 0
  38. +      echo sparc-unknown-linux ; exit 0
  39.      else
  40. -      # Either a pre-BFD a.out linker (lignuxoldld) or one that does not give us
  41. -      # useful --help.  Gcc wants to distinguish between lignuxoldld and lignuxaout.
  42. +      # Either a pre-BFD a.out linker (linuxoldld) or one that does not give us
  43. +      # useful --help.  Gcc wants to distinguish between linuxoldld and linuxaout.
  44.        test ! -d /usr/lib/ldscripts/. \
  45. -        && echo "${UNAME_MACHINE}-unknown-lignuxoldld" && exit 0
  46. +        && echo "${UNAME_MACHINE}-unknown-linuxoldld" && exit 0
  47.        # Determine whether the default compiler is a.out or elf
  48.        cat >dummy.c <<EOF
  49.  main(argc, argv)
  50. @@ -364,9 +364,9 @@
  51.  char *argv[];
  52.  {
  53.  #ifdef __ELF__
  54. -  printf ("%s-unknown-lignux\n", argv[1]);
  55. +  printf ("%s-unknown-linux\n", argv[1]);
  56.  #else
  57. -  printf ("%s-unknown-lignuxaout\n", argv[1]);
  58. +  printf ("%s-unknown-linuxaout\n", argv[1]);
  59.  #endif
  60.    return 0;
  61.  }
  62. diff -Nru emacs-19.31/config.sub emacs-19.31-linux/config.sub
  63. --- emacs-19.31/config.sub    Sun May 26 02:17:33 1996
  64. +++ emacs-19.31-linux/config.sub    Sun May 26 12:51:55 1996
  65. @@ -650,10 +650,10 @@
  66.          os=-sysv4
  67.          ;;
  68.      -gnu/linux*)
  69. -        os=`echo $os | sed -e 's|gnu/linux|lignux|'`
  70. +        os=`echo $os | sed -e 's|gnu/linux|linux|'`
  71.          ;;
  72.      -linux*)
  73. -        os=`echo $os | sed -e 's|linux|lignux|'`
  74. +        os=`echo $os | sed -e 's|linux|linux|'`
  75.          ;;
  76.      # First accept the basic system types.
  77.      # The portable systems comes first.
  78. @@ -664,7 +664,7 @@
  79.            | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  80.            | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
  81.            | -nindy* | -vxworks* | -ebmon* | -hms* | -mvs* | -clix* \
  82. -          | -riscos* | -lignux* | -uniplus* | -iris* | -rtu* | -xenix* \
  83. +          | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \
  84.            | -hiux* | -386bsd* | -netbsd* | -freebsd* | -riscix* \
  85.            | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
  86.            | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  87. diff -Nru emacs-19.31/configure emacs-19.31-linux/configure
  88. --- emacs-19.31/configure    Sat May 25 17:59:44 1996
  89. +++ emacs-19.31-linux/configure    Sun May 26 12:51:55 1996
  90. @@ -748,8 +748,8 @@
  91.      machine=alpha opsys=osf1
  92.    ;;
  93.  
  94. -  alpha-*-linux* | alpha-*-lignux* )
  95. -    machine=alpha opsys=lignux
  96. +  alpha-*-linux* | alpha-*-linux* )
  97. +    machine=alpha opsys=linux
  98.    ;;
  99.  
  100.    ## Altos 3068
  101. @@ -1237,8 +1237,8 @@
  102.    ;;
  103.  
  104.    ## Suns
  105. -  sparc-*-linux* | sparc-*-lignux* )
  106. -    machine=sparc opsys=lignux
  107. +  sparc-*-linux* | sparc-*-linux* )
  108. +    machine=sparc opsys=linux
  109.    ;;
  110.  
  111.    *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
  112. @@ -1394,7 +1394,7 @@
  113.        *-esix5* )        opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
  114.        *-esix* )            opsys=esix ;;
  115.        *-xenix* )        opsys=xenix ;;
  116. -      *-linux* | *-lignux* )    opsys=lignux ;;
  117. +      *-linux* | *-linux* )    opsys=linux ;;
  118.        *-sco3.2v4* )        opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
  119.        *-bsd386* | *-bsdi1* )    opsys=bsd386 ;;
  120.        *-bsdi2* )        opsys=bsdos2 ;;
  121. @@ -1406,8 +1406,8 @@
  122.    ;;
  123.  
  124.    ## Lignux/68k
  125. -  m68k-*-linux* | m68k-*-lignux* )
  126. -    machine=m68k opsys=lignux
  127. +  m68k-*-linux* | m68k-*-linux* )
  128. +    machine=m68k opsys=linux
  129.    ;;
  130.  
  131.    * )
  132. @@ -2996,7 +2996,7 @@
  133.      export LD_RUN_PATH
  134.    fi
  135.  
  136. -  if test "${opsys}" = "lignux"; then
  137. +  if test "${opsys}" = "linux"; then
  138.      echo $ac_n "checking whether X on GNU/Linux needs -b to link""... $ac_c" 1>&6
  139.      cat > conftest.$ac_ext <<EOF
  140.  #line 3003 "configure"
  141. diff -Nru emacs-19.31/configure.in emacs-19.31-linux/configure.in
  142. --- emacs-19.31/configure.in    Sat May 25 16:23:12 1996
  143. +++ emacs-19.31-linux/configure.in    Sun May 26 12:51:55 1996
  144. @@ -189,8 +189,8 @@
  145.      machine=alpha opsys=osf1
  146.    ;;
  147.  
  148. -  alpha-*-linux* | alpha-*-lignux* )
  149. -    machine=alpha opsys=lignux
  150. +  alpha-*-linux* | alpha-*-linux* )
  151. +    machine=alpha opsys=linux
  152.    ;;
  153.  
  154.    ## Altos 3068
  155. @@ -678,8 +678,8 @@
  156.    ;;
  157.  
  158.    ## Suns
  159. -  sparc-*-linux* | sparc-*-lignux* )
  160. -    machine=sparc opsys=lignux
  161. +  sparc-*-linux* | sparc-*-linux* )
  162. +    machine=sparc opsys=linux
  163.    ;;
  164.  
  165.    *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
  166. @@ -835,7 +835,7 @@
  167.        *-esix5* )        opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
  168.        *-esix* )            opsys=esix ;;
  169.        *-xenix* )        opsys=xenix ;;
  170. -      *-linux* | *-lignux* )    opsys=lignux ;;
  171. +      *-linux* | *-linux* )    opsys=linux ;;
  172.        *-sco3.2v4* )        opsys=sco4 ; NON_GNU_CPP=/lib/cpp  ;;
  173.        *-bsd386* | *-bsdi1* )    opsys=bsd386 ;;
  174.        *-bsdi2* )        opsys=bsdos2 ;;
  175. @@ -847,8 +847,8 @@
  176.    ;;
  177.  
  178.    ## Lignux/68k
  179. -  m68k-*-linux* | m68k-*-lignux* )
  180. -    machine=m68k opsys=lignux
  181. +  m68k-*-linux* | m68k-*-linux* )
  182. +    machine=m68k opsys=linux
  183.    ;;
  184.  
  185.    * )
  186. @@ -1270,7 +1270,7 @@
  187.      export LD_RUN_PATH
  188.    fi
  189.  
  190. -  if test "${opsys}" = "lignux"; then
  191. +  if test "${opsys}" = "linux"; then
  192.      AC_MSG_CHECKING(whether X on GNU/Linux needs -b to link)
  193.      AC_TRY_LINK([],
  194.       [XOpenDisplay ("foo");],
  195. diff -Nru emacs-19.31/etc/MACHINES emacs-19.31-linux/etc/MACHINES
  196. --- emacs-19.31/etc/MACHINES    Sun Apr 28 07:51:21 1996
  197. +++ emacs-19.31-linux/etc/MACHINES    Sun May 26 12:53:47 1996
  198. @@ -68,7 +68,7 @@
  199.  
  200.    Known to work with 19.26 and OS version 2.2, compiler version 1.3.
  201.  
  202. -Alpha (DEC) running OSF/1 (alpha-dec-osf1, alpha-dec-lignux)
  203. +Alpha (DEC) running OSF/1 (alpha-dec-osf1, alpha-dec-linux)
  204.  
  205.    Patches merged in 19.29.  Note that the X11 libraries on GNU/Linux systems
  206.    for the Alpha are said to have bugs that prevent Emacs from working with X
  207. @@ -525,7 +525,7 @@
  208.    indicates the Umax operating system).
  209.  
  210.  Intel 386 (i386-*-isc,         i386-*-esix,     i386-*-bsdi2,
  211. -       i386-*-xenix,    i386-*-lignux,    i386-*-freebsd,
  212. +       i386-*-xenix,    i386-*-linux,    i386-*-freebsd,
  213.         i386-*-sol2.4,    i386-intsys-sysv, i386-*-sysv3,
  214.         i386-*-sysv4,    i386-*-sysv4.2,
  215.         i386-*-sysv5.3,    i386-*-bsd4.2,
  216. @@ -541,7 +541,7 @@
  217.      version number - for example, if you're running ISC 3.0, use
  218.      i386-unknown-isc3.0 as your configuration name.
  219.    Use i386-*-esix for Esix; Emacs runs as of version 19.6.
  220. -  Use i386-*-lignux for GNU/Linux systems; Emacs runs as of version 19.26.
  221. +  Use i386-*-linux for GNU/Linux systems; Emacs runs as of version 19.26.
  222.    Use i386-intsys-sysv for Integrated Solutions 386 machines.
  223.    It may also be correct for Microport systems.
  224.    Use i386-*-sco3.2v4 for SCO 3.2v4; Emacs runs as of version 19.26.
  225. diff -Nru emacs-19.31/etc/NEWS emacs-19.31-linux/etc/NEWS
  226. --- emacs-19.31/etc/NEWS    Wed May 15 16:51:58 1996
  227. +++ emacs-19.31-linux/etc/NEWS    Sun May 26 12:53:48 1996
  228. @@ -319,7 +319,7 @@
  229.  
  230.  ** Change in system-type and system-configuration values.
  231.  
  232. -The value of system-type on a Linux-based GNU system is now `lignux',
  233. +The value of system-type on a Linux-based GNU system is now `linux',
  234.  not `linux'.  This means that some programs which use `system-type'
  235.  need to be changed.  The value of `system-configuration' will also
  236.  be different.
  237. diff -Nru emacs-19.31/lib-src/getdate.c emacs-19.31-linux/lib-src/getdate.c
  238. --- emacs-19.31/lib-src/getdate.c    Tue Apr  9 23:18:04 1996
  239. +++ emacs-19.31-linux/lib-src/getdate.c    Sun May 26 12:58:38 1996
  240. @@ -1,6 +1,5 @@
  241.  
  242. -/*  A Bison parser, made from getdate.y
  243. - by  Bison version A2.5 (Andrew Consortium)
  244. +/*  A Bison parser, made from getdate.y with Bison version GNU Bison version 1.22
  245.    */
  246.  
  247.  #define YYBISON 1  /* Identify Bison output.  */
  248. @@ -179,6 +178,23 @@
  249.      time_t        Number;
  250.      enum _MERIDIAN    Meridian;
  251.  } YYSTYPE;
  252. +
  253. +#ifndef YYLTYPE
  254. +typedef
  255. +  struct yyltype
  256. +    {
  257. +      int timestamp;
  258. +      int first_line;
  259. +      int first_column;
  260. +      int last_line;
  261. +      int last_column;
  262. +      char *text;
  263. +   }
  264. +  yyltype;
  265. +
  266. +#define YYLTYPE yyltype
  267. +#endif
  268. +
  269.  #include <stdio.h>
  270.  
  271.  #ifndef __cplusplus
  272. @@ -260,15 +276,11 @@
  273.     307,   310,   313,   316,   319,   322,   325,   328,   333,   360,
  274.     363
  275.  };
  276. -#endif
  277. -
  278. -
  279. -#if YYDEBUG != 0
  280.  
  281. -static const char * const yytname[] = {   "$","error","$undefined.","tAGO","tDAY",
  282. +static const char * const yytname[] = {   "$","error","$illegal.","tAGO","tDAY",
  283.  "tDAYZONE","tID","tMERIDIAN","tMINUTE_UNIT","tMONTH","tMONTH_UNIT","tSEC_UNIT",
  284.  "tSNUMBER","tUNUMBER","tZONE","tDST","':'","','","'/'","spec","item","time",
  285. -"zone","day","date","rel","relunit","number","o_merid", NULL
  286. +"zone","day","date","rel","relunit","number","o_merid",""
  287.  };
  288.  #endif
  289.  
  290. @@ -334,14 +346,14 @@
  291.      13,    47
  292.  };
  293.  /* -*-C-*-  Note some compilers choke on comments on `#line' lines.  */
  294. -#line 3 "/usr/share/bison.simple"
  295. +#line 3 "/usr/lib/bison.simple"
  296.  
  297.  /* Skeleton output parser for bison,
  298. -   Copyright (C) 1984, 1989, 1990 Free Software Foundation, Inc.
  299. +   Copyright (C) 1984, 1989, 1990 Bob Corbett and Richard Stallman
  300.  
  301.     This program is free software; you can redistribute it and/or modify
  302.     it under the terms of the GNU General Public License as published by
  303. -   the Free Software Foundation; either version 2, or (at your option)
  304. +   the Free Software Foundation; either version 1, or (at your option)
  305.     any later version.
  306.  
  307.     This program is distributed in the hope that it will be useful,
  308. @@ -353,10 +365,6 @@
  309.     along with this program; if not, write to the Free Software
  310.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  311.  
  312. -/* As a special exception, when this file is copied by Bison into a
  313. -   Bison output file, you may use that output file without restriction.
  314. -   This special exception was added by the Free Software Foundation
  315. -   in version 1.24 of Bison.  */
  316.  
  317.  #ifndef alloca
  318.  #ifdef __GNUC__
  319. @@ -430,18 +438,10 @@
  320.  
  321.  #ifdef YYPURE
  322.  #ifdef YYLSP_NEEDED
  323. -#ifdef YYLEX_PARAM
  324. -#define YYLEX        yylex(&yylval, &yylloc, YYLEX_PARAM)
  325. -#else
  326.  #define YYLEX        yylex(&yylval, &yylloc)
  327. -#endif
  328. -#else /* not YYLSP_NEEDED */
  329. -#ifdef YYLEX_PARAM
  330. -#define YYLEX        yylex(&yylval, YYLEX_PARAM)
  331.  #else
  332.  #define YYLEX        yylex(&yylval)
  333.  #endif
  334. -#endif /* not YYLSP_NEEDED */
  335.  #endif
  336.  
  337.  /* If nonreentrant, generate the variables here */
  338. @@ -489,14 +489,14 @@
  339.  #endif
  340.  
  341.  #if __GNUC__ > 1        /* GNU C and GNU C++ define this.  */
  342. -#define __yy_memcpy(FROM,TO,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  343. +#define __yy_bcopy(FROM,TO,COUNT)    __builtin_memcpy(TO,FROM,COUNT)
  344.  #else                /* not GNU C or C++ */
  345.  #ifndef __cplusplus
  346.  
  347.  /* This is the most reliable way to avoid incompatibilities
  348.     in available built-in functions on various systems.  */
  349.  static void
  350. -__yy_memcpy (from, to, count)
  351. +__yy_bcopy (from, to, count)
  352.       char *from;
  353.       char *to;
  354.       int count;
  355. @@ -514,7 +514,7 @@
  356.  /* This is the most reliable way to avoid incompatibilities
  357.     in available built-in functions on various systems.  */
  358.  static void
  359. -__yy_memcpy (char *from, char *to, int count)
  360. +__yy_bcopy (char *from, char *to, int count)
  361.  {
  362.    register char *f = from;
  363.    register char *t = to;
  364. @@ -527,24 +527,9 @@
  365.  #endif
  366.  #endif
  367.  
  368. -#line 192 "/usr/share/bison.simple"
  369. -
  370. -/* The user can define YYPARSE_PARAM as the name of an argument to be passed
  371. -   into yyparse.  The argument should have type void *.
  372. -   It should actually point to an object.
  373. -   Grammar actions can access the variable by casting it
  374. -   to the proper pointer type.  */
  375. -
  376. -#ifdef YYPARSE_PARAM
  377. -#define YYPARSE_PARAM_DECL void *YYPARSE_PARAM;
  378. -#else
  379. -#define YYPARSE_PARAM
  380. -#define YYPARSE_PARAM_DECL
  381. -#endif
  382. -
  383. +#line 184 "/usr/lib/bison.simple"
  384.  int
  385. -yyparse(YYPARSE_PARAM)
  386. -     YYPARSE_PARAM_DECL
  387. +yyparse()
  388.  {
  389.    register int yystate;
  390.    register int yyn;
  391. @@ -660,12 +645,12 @@
  392.        if (yystacksize > YYMAXDEPTH)
  393.      yystacksize = YYMAXDEPTH;
  394.        yyss = (short *) alloca (yystacksize * sizeof (*yyssp));
  395. -      __yy_memcpy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  396. +      __yy_bcopy ((char *)yyss1, (char *)yyss, size * sizeof (*yyssp));
  397.        yyvs = (YYSTYPE *) alloca (yystacksize * sizeof (*yyvsp));
  398. -      __yy_memcpy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  399. +      __yy_bcopy ((char *)yyvs1, (char *)yyvs, size * sizeof (*yyvsp));
  400.  #ifdef YYLSP_NEEDED
  401.        yyls = (YYLTYPE *) alloca (yystacksize * sizeof (*yylsp));
  402. -      __yy_memcpy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  403. +      __yy_bcopy ((char *)yyls1, (char *)yyls, size * sizeof (*yylsp));
  404.  #endif
  405.  #endif /* no yyoverflow */
  406.  
  407. @@ -1111,7 +1096,7 @@
  408.      break;}
  409.  }
  410.     /* the action file gets copied in in place of this dollarsign */
  411. -#line 487 "/usr/share/bison.simple"
  412. +#line 465 "/usr/lib/bison.simple"
  413.  
  414.    yyvsp -= yylen;
  415.    yyssp -= yylen;
  416. diff -Nru emacs-19.31/lisp/ChangeLog emacs-19.31-linux/lisp/ChangeLog
  417. --- emacs-19.31/lisp/ChangeLog    Sat May 25 21:31:23 1996
  418. +++ emacs-19.31-linux/lisp/ChangeLog    Sun May 26 12:53:03 1996
  419. @@ -582,9 +582,9 @@
  420.  
  421.  Tue Mar 26 19:13:13 1996  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
  422.  
  423. -    * sh-script.el (sh-alias-alist): Recognize lignux.
  424. +    * sh-script.el (sh-alias-alist): Recognize linux.
  425.  
  426. -    * dired.el (dired-chown-program): Recognize lignux.
  427. +    * dired.el (dired-chown-program): Recognize linux.
  428.  
  429.      * gnus-cus.el (gnus-make-face, custom-declare):
  430.      Rename custom-asis to custom:asis.
  431. diff -Nru emacs-19.31/lisp/dired.el emacs-19.31-linux/lisp/dired.el
  432. --- emacs-19.31/lisp/dired.el    Fri Apr  5 21:10:39 1996
  433. +++ emacs-19.31-linux/lisp/dired.el    Sun May 26 12:52:08 1996
  434. @@ -48,7 +48,7 @@
  435.  
  436.  ;;;###autoload
  437.  (defvar dired-chown-program
  438. -  (if (memq system-type '(hpux dgux usg-unix-v irix linux lignux))
  439. +  (if (memq system-type '(hpux dgux usg-unix-v irix linux linux))
  440.        "chown" "/etc/chown")
  441.    "Name of chown command (usually `chown' or `/etc/chown').")
  442.  
  443. Binary files emacs-19.31/lisp/dired.elc and emacs-19.31-linux/lisp/dired.elc differ
  444. diff -Nru emacs-19.31/lisp/loaddefs.el emacs-19.31-linux/lisp/loaddefs.el
  445. --- emacs-19.31/lisp/loaddefs.el    Thu May 23 21:49:58 1996
  446. +++ emacs-19.31-linux/lisp/loaddefs.el    Sun May 26 12:52:19 1996
  447. @@ -2517,7 +2517,7 @@
  448.  may contain even `F', `b', `i' and `s'.  See also the variable
  449.  `dired-ls-F-marks-symlinks' concerning the `F' switch.")
  450.  
  451. -(defvar dired-chown-program (if (memq system-type (quote (hpux dgux usg-unix-v irix linux lignux))) "chown" "/etc/chown") "\
  452. +(defvar dired-chown-program (if (memq system-type (quote (hpux dgux usg-unix-v irix linux linux))) "chown" "/etc/chown") "\
  453.  Name of chown command (usually `chown' or `/etc/chown').")
  454.  
  455.  (defvar dired-ls-F-marks-symlinks nil "\
  456. diff -Nru emacs-19.31/lisp/sh-script.el emacs-19.31-linux/lisp/sh-script.el
  457. --- emacs-19.31/lisp/sh-script.el    Mon Apr 15 23:15:47 1996
  458. +++ emacs-19.31-linux/lisp/sh-script.el    Sun May 26 12:52:27 1996
  459. @@ -90,7 +90,7 @@
  460.  
  461.  
  462.  (defvar sh-alias-alist
  463. -  (nconc (if (eq system-type 'lignux)
  464. +  (nconc (if (eq system-type 'linux)
  465.           '((csh . tcsh)
  466.             (ksh . pdksh)))
  467.       ;; for the time being
  468. Binary files emacs-19.31/lisp/sh-script.elc and emacs-19.31-linux/lisp/sh-script.elc differ
  469. diff -Nru emacs-19.31/paths.h.567 emacs-19.31-linux/paths.h.567
  470. --- emacs-19.31/paths.h.567    Thu Jan  1 01:00:00 1970
  471. +++ emacs-19.31-linux/paths.h.567    Sun May 26 12:57:09 1996
  472. @@ -0,0 +1,42 @@
  473. +/* Hey Emacs, this is -*- C -*- code!  */
  474. +
  475. +/* The default search path for Lisp function "load".
  476. +   This sets load-path.  */
  477. +#define PATH_LOADSEARCH "/usr/local/lib/emacs/19.31/site-lisp:/usr/local/lib/emacs/site-lisp:/usr/local/lib/emacs/19.31/lisp"
  478. +
  479. +/* Like PATH_LOADSEARCH, but used only when Emacs is dumping.  This
  480. +   path is usually identical to PATH_LOADSEARCH except that the entry
  481. +   for the directory containing the installed lisp files has been
  482. +   replaced with ../lisp.  */
  483. +#define PATH_DUMPLOADSEARCH "/usr/src/emacs-19.31/lisp"
  484. +
  485. +/* The extra search path for programs to invoke.  This is appended to
  486. +   whatever the PATH environment variable says to set the Lisp
  487. +   variable exec-path and the first file name in it sets the Lisp
  488. +   variable exec-directory.  exec-directory is used for finding
  489. +   executables and other architecture-dependent files.  */
  490. +#define PATH_EXEC "/usr/local/libexec/emacs/19.31/i586-logina-linux"
  491. +
  492. +/* Where Emacs should look for its architecture-independent data
  493. +   files, like the NEWS file.  The lisp variable data-directory
  494. +   is set to this value.  */
  495. +#define PATH_DATA "/usr/local/lib/emacs/19.31/etc"
  496. +
  497. +/* Where Emacs should look for X bitmap files.
  498. +   The lisp variable x-bitmap-file-path is set based on this value.  */
  499. +#define PATH_BITMAPS "/usr/X11R6/include/X11/bitmaps"
  500. +
  501. +/* Where Emacs should look for its docstring file.  The lisp variable
  502. +   doc-directory is set to this value.  */
  503. +#define PATH_DOC "/usr/local/lib/emacs/19.31/etc"
  504. +
  505. +/* The name of the directory that contains lock files with which we
  506. +   record what files are being modified in Emacs.  This directory
  507. +   should be writable by everyone.  THE STRING MUST END WITH A
  508. +   SLASH!!!  */
  509. +#define PATH_LOCK "/usr/local/com/emacs/lock/"
  510. +
  511. +/* Where the configuration process believes the info tree lives.  The
  512. +   lisp variable configure-info-directory gets its value from this
  513. +   macro, and is then used to set the Info-default-directory-list.  */
  514. +#define PATH_INFO "/usr/local/info"
  515. diff -Nru emacs-19.31/src/ChangeLog emacs-19.31-linux/src/ChangeLog
  516. --- emacs-19.31/src/ChangeLog    Sun May 26 01:40:28 1996
  517. +++ emacs-19.31-linux/src/ChangeLog    Sun May 26 12:53:31 1996
  518. @@ -860,7 +860,7 @@
  519.  
  520.      * syswait.h: Remove `|| defined (LINUX)' from #if condition.
  521.  
  522. -    * s/lignux.h: Define HAVE_WAIT_HEADER.
  523. +    * s/linux.h: Define HAVE_WAIT_HEADER.
  524.  
  525.  Thu Apr 11 00:10:01 1996  Geoff Voelker  <voelker@cs.washington.edu>
  526.  
  527. @@ -900,7 +900,7 @@
  528.  Mon Apr  8 09:45:18 1996  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
  529.  
  530.      * config.in (HAVE_LIBNCURSES): Renamed from HAVE_NCURSES.
  531. -    * s/lignux.h: Test HAVE_LIBNCURSES, not HAVE_NCURSES.
  532. +    * s/linux.h: Test HAVE_LIBNCURSES, not HAVE_NCURSES.
  533.  
  534.  Sat Apr  6 17:29:47 1996  Richard Stallman  <rms@lucy.gnu.ai.mit.edu>
  535.  
  536. @@ -908,7 +908,7 @@
  537.  
  538.  Fri Apr  5 13:10:45 1996  Richard Stallman  <rms@lucy.gnu.ai.mit.edu>
  539.  
  540. -    * s/lignux.h [HAVE_NCURSES] (LIBS_TERMCAP): New definition.
  541. +    * s/linux.h [HAVE_NCURSES] (LIBS_TERMCAP): New definition.
  542.  
  543.      * alloc.c (garbage_collection_messages): New variable.
  544.      (syms_of_alloc): Set up Lisp variable.
  545. @@ -943,7 +943,7 @@
  546.  
  547.  Sat Mar 30 11:09:14 1996  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
  548.  
  549. -    * s/lignux.h (TERMINFO): Do define (if HAVE_NCURSES).
  550. +    * s/linux.h (TERMINFO): Do define (if HAVE_NCURSES).
  551.  
  552.  Fri Mar 29 18:06:55 1996  Richard Stallman  <rms@mole.gnu.ai.mit.edu>
  553.  
  554. @@ -980,8 +980,8 @@
  555.      * xterm.c (XTread_socket, MapNotify case):
  556.      Call record_asynch_buffer_change only if >1 frames.
  557.  
  558. -    * s/lignux.h: Renamed from s/linux.h.
  559. -     (SYSTEM_TYPE): Changed to "lignux".
  560. +    * s/linux.h: Renamed from s/linux.h.
  561. +     (SYSTEM_TYPE): Changed to "linux".
  562.  
  563.      * process.c (wait_reading_process_input_1): New (empty) function.
  564.      (wait_reading_process_input): Call wait_reading_process_input_1.
  565. diff -Nru emacs-19.31/src/s/lignux.h emacs-19.31-linux/src/s/lignux.h
  566. --- emacs-19.31/src/s/lignux.h    Thu Apr 11 19:35:48 1996
  567. +++ emacs-19.31-linux/src/s/lignux.h    Thu Jan  1 01:00:00 1970
  568. @@ -1,288 +0,0 @@
  569. -/* This file is the configuration file for Lignux systems
  570. -   (that is,  Linux-based GNU operating systems.)
  571. -   Copyright (C) 1985, 1986, 1992, 1994, 1996 Free Software Foundation, Inc.
  572. -
  573. -This file is part of GNU Emacs.
  574. -
  575. -GNU Emacs is free software; you can redistribute it and/or modify
  576. -it under the terms of the GNU General Public License as published by
  577. -the Free Software Foundation; either version 2, or (at your option)
  578. -any later version.
  579. -
  580. -GNU Emacs is distributed in the hope that it will be useful,
  581. -but WITHOUT ANY WARRANTY; without even the implied warranty of
  582. -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  583. -GNU General Public License for more details.
  584. -
  585. -You should have received a copy of the GNU General Public License
  586. -along with GNU Emacs; see the file COPYING.  If not, write to
  587. -the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  588. -Boston, MA 02111-1307, USA.  */
  589. -
  590. -/* This file was put together by Michael K. Johnson and Rik Faith.  */
  591. -
  592. -
  593. -/*
  594. - *    Define symbols to identify the version of Unix this is.
  595. - *    Define all the symbols that apply correctly.
  596. - */
  597. -
  598. -/* #define UNIPLUS */
  599. -/* #define USG5 */
  600. -#define USG
  601. -/* #define BSD */
  602. -#define LINUX
  603. -
  604. -/* SYSTEM_TYPE should indicate the kind of system you are using.
  605. - It sets the Lisp variable system-type.  */
  606. -
  607. -#define SYSTEM_TYPE "lignux"        /* All the best software is free. */
  608. -
  609. -/* Check the version number of Linux--if it is at least 1.2.0,
  610. -   it is safe to use SIGIO.  */
  611. -#ifndef NOT_C_CODE
  612. -#ifdef emacs
  613. -#ifdef HAVE_LINUX_VERSION_H
  614. -#include <linux/version.h>
  615. -
  616. -#if LINUX_VERSION_CODE > 0x10200
  617. -#define LINUX_SIGIO_DOES_WORK
  618. -#endif /* LINUX_VERSION_CODE > 0x10200 */
  619. -#endif /* HAVE_LINUX_VERSION_H */
  620. -#endif /* emacs */
  621. -#endif /* NOT_C_CODE */
  622. -
  623. -/* Letter to use in finding device name of first pty,
  624. -  if system supports pty's.  'p' means it is /dev/ptyp0  */
  625. -
  626. -#define FIRST_PTY_LETTER 'p'
  627. -
  628. -/*
  629. - *    Define HAVE_TERMIOS if the system provides POSIX-style
  630. - *    functions and macros for terminal control.
  631. - */
  632. -
  633. -#define HAVE_TERMIOS
  634. -
  635. -/*
  636. - *    Define HAVE_PTYS if the system supports pty devices.
  637. - */
  638. -
  639. -#define HAVE_PTYS
  640. -
  641. -/* Uncomment this later when other problems are dealt with -mkj */
  642. -
  643. -#define HAVE_SOCKETS
  644. -
  645. -/* Define this symbol if your system has the functions bcopy, etc. */
  646. -
  647. -#define BSTRING
  648. -
  649. -/* subprocesses should be defined if you want to
  650. -   have code for asynchronous subprocesses
  651. -   (as used in M-x compile and M-x shell).
  652. -   This is generally OS dependent, and not supported
  653. -   under most USG systems. */
  654. -
  655. -#define subprocesses
  656. -
  657. -/* define MAIL_USE_FLOCK if the mailer uses flock
  658. -   to interlock access to /usr/spool/mail/$USER.
  659. -   The alternative is that a lock file named
  660. -   /usr/spool/mail/$USER.lock.  */
  661. -
  662. -/* Both are used in Linux by different mail programs.  I assume that most
  663. -   people are using newer mailers that have heard of flock.  Change this
  664. -   if you need to. */
  665. -
  666. -#define MAIL_USE_FLOCK
  667. -
  668. -/* Define CLASH_DETECTION if you want lock files to be written
  669. -   so that Emacs can tell instantly when you try to modify
  670. -   a file that someone else has modified in his Emacs.  */
  671. -
  672. -#define CLASH_DETECTION
  673. -
  674. -/* Here, on a separate page, add any special hacks needed
  675. -   to make Emacs work on this system.  For example,
  676. -   you might define certain system call names that don't
  677. -   exist on your system, or that do different things on
  678. -   your system and must be used only through an encapsulation
  679. -   (Which you should place, by convention, in sysdep.c).  */
  680. -
  681. -/* On POSIX systems the system calls are interruptible by signals
  682. - that the user program has elected to catch.  Thus the system call
  683. - must be retried in these cases.  To handle this without massive
  684. - changes in the source code, we remap the standard system call names
  685. - to names for our own functions in sysdep.c that do the system call
  686. - with retries. */
  687. -
  688. -#define read sys_read
  689. -#define write sys_write
  690. -#define open sys_open
  691. -#define close sys_close
  692. -
  693. -#define INTERRUPTIBLE_OPEN
  694. -#define INTERRUPTIBLE_CLOSE
  695. -#define INTERRUPTIBLE_IO
  696. -
  697. -/* If you mount the proc file system somewhere other than /proc
  698. -   you will have to uncomment the following and make the proper
  699. -   changes */
  700. -
  701. -/* #define LINUX_LDAV_FILE "/proc/loadavg" */
  702. -
  703. -/* This is needed for dispnew.c:update_frame */
  704. -
  705. -#ifdef emacs
  706. -#include <stdio.h>  /* Get the definition of _IO_STDIO_H.  */
  707. -#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
  708. -/* new C libio names */
  709. -#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
  710. -  ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
  711. -#else /* !_IO_STDIO_H */
  712. -/* old C++ iostream names */
  713. -#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
  714. -  ((FILE)->_pptr - (FILE)->_pbase)
  715. -#endif /* !_IO_STDIO_H */
  716. -#endif /* emacs */
  717. -
  718. -/* Ask GCC where to find libgcc.a.  */
  719. -#define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
  720. -
  721. -#ifndef __ELF__
  722. -/* Linux has crt0.o in a non-standard place */
  723. -#define START_FILES pre-crt0.o /usr/lib/crt0.o
  724. -#else
  725. -#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
  726. -#endif
  727. -
  728. -/* As of version 1.1.51, Linux does not actually implement SIGIO.  */
  729. -/* Here we assume that signal.h is already included.  */
  730. -#ifdef emacs
  731. -#ifdef LINUX_SIGIO_DOES_WORK
  732. -#define INTERRUPT_INPUT
  733. -#else
  734. -#undef SIGIO
  735. -/* Some versions of Linux define SIGURG and SIGPOLL as aliases for SIGIO.
  736. -   This prevents lossage in process.c.  */
  737. -#undef SIGURG
  738. -#undef SIGPOLL
  739. -#endif
  740. -#endif
  741. -
  742. -/* This is needed for sysdep.c */
  743. -
  744. -#define NO_SIOCTL_H           /* don't have sioctl.h */
  745. -
  746. -#define HAVE_VFORK
  747. -#define HAVE_SYS_SIGLIST
  748. -#define HAVE_GETWD            /* cure conflict with getcwd? */
  749. -#define HAVE_WAIT_HEADER
  750. -
  751. -#define SYSV_SYSTEM_DIR       /* use dirent.h */
  752. -
  753. -#define POSIX                 /* affects getpagesize.h and systty.h */
  754. -#define POSIX_SIGNALS
  755. -
  756. -/* Best not to include -lg, unless it is last on the command line */
  757. -#define LIBS_DEBUG
  758. -#ifndef __ELF__
  759. -#define LIB_STANDARD -lc /* avoid -lPW */
  760. -#else
  761. -#undef LIB_GCC
  762. -#define LIB_GCC
  763. -#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
  764. -#endif
  765. -
  766. -/* Don't use -g in test compiles in configure.
  767. -   This is so we will use the same shared libs for that linking
  768. -   that are used when linking temacs.  */
  769. -#ifdef THIS_IS_CONFIGURE
  770. -#define C_DEBUG_SWITCH
  771. -#endif
  772. -
  773. -/* Let's try this out, just in case.
  774. -   Nah.  Rik Faith <faith@cs.unc.edu> says it doesn't work well.  */
  775. -/* #define SIGNALS_VIA_CHARACTERS */
  776. -
  777. -/* Rob Malouf <malouf@csli.stanford.edu> says:
  778. -   SYSV IPC is standard a standard part of Linux since version 0.99pl10,
  779. -   and is a very common addition to previous versions.  */
  780. -
  781. -#ifdef TERM
  782. -#define LIBS_SYSTEM -lclient
  783. -#define C_SWITCH_SYSTEM -D_BSD_SOURCE -I/usr/src/term
  784. -#else
  785. -/* alane@wozzle.linet.org says that -lipc is not a separate library,
  786. -   since libc-4.4.1.  So -lipc was deleted.  */
  787. -#define LIBS_SYSTEM
  788. -#define C_SWITCH_SYSTEM -D_BSD_SOURCE
  789. -#endif
  790. -
  791. -/* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed.  */
  792. -#define LIB_MOTIF -lXm -lXpm
  793. -
  794. -#ifdef HAVE_LIBNCURSES
  795. -#define TERMINFO
  796. -#define LIBS_TERMCAP -lncurses
  797. -#endif
  798. -
  799. -#define HAVE_SYSVIPC
  800. -
  801. -#ifdef __ELF__
  802. -#define UNEXEC unexelf.o
  803. -#define UNEXEC_USE_MAP_PRIVATE
  804. -#endif
  805. -
  806. -#ifdef LINUX_QMAGIC
  807. -
  808. -#define HAVE_TEXT_START
  809. -#define UNEXEC unexsunos4.o
  810. -#define N_PAGSIZ(x) PAGE_SIZE
  811. -
  812. -#else /* not LINUX_QMAGIC */
  813. -
  814. -#define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0)
  815. -#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
  816. -#define ADJUST_EXEC_HEADER \
  817. -  unexec_text_start = N_TXTADDR(ohdr) + A_TEXT_OFFSET(ohdr)
  818. -
  819. -#endif /* not LINUX_QMAGIC */
  820. -
  821. -#if 0
  822. -/* In 19.23 and 19.24, configure sometimes fails to define these.
  823. -   It has to do with the fact that configure uses CFLAGS when linking
  824. -   while Makefile.in.in (erroneously) fails to do so when linking temacs.  */
  825. -#ifndef HAVE_GETTIMEOFDAY
  826. -#define HAVE_GETTIMEOFDAY
  827. -#endif
  828. -#ifndef HAVE_MKDIR
  829. -#define HAVE_MKDIR
  830. -#endif
  831. -#ifndef HAVE_RMDIR
  832. -#define HAVE_RMDIR
  833. -#endif
  834. -#ifndef HAVE_XSCREENNUMBEROFSCREEN
  835. -#define HAVE_XSCREENNUMBEROFSCREEN
  836. -#endif
  837. -#endif /* 0 */
  838. -
  839. -/* This is to work around mysterious gcc failures in some system versions.
  840. -   It is unlikely that Emacs changes will work around this problem;
  841. -   therefore, this should remain permanently.  */
  842. -#ifndef HAVE_XRMSETDATABASE
  843. -#define HAVE_XRMSETDATABASE
  844. -#endif
  845. -
  846. -/* The regex.o routines are a part of the GNU C-library used with Linux.  */
  847. -/* However, sometimes they disagree with the src/regex.h that comes with Emacs,
  848. -   and that can make trouble in etags.c because it gets the regex.h from Emacs
  849. -   and the function definitions in libc.  So turn this off.  */
  850. -/* #define REGEXP_IN_LIBC */
  851. -
  852. -/* Use BSD process groups, but use setpgid() instead of setpgrp() to
  853. -   actually set a process group. */
  854. -
  855. -#define BSD_PGRPS
  856. -#define setpgrp(pid,pgid) setpgid((pid),(pgid))
  857. diff -Nru emacs-19.31/src/s/linux.h emacs-19.31-linux/src/s/linux.h
  858. --- emacs-19.31/src/s/linux.h    Thu Jan  1 01:00:00 1970
  859. +++ emacs-19.31-linux/src/s/linux.h    Sun May 26 12:53:13 1996
  860. @@ -0,0 +1,288 @@
  861. +/* This file is the configuration file for Lignux systems
  862. +   (that is,  Linux-based GNU operating systems.)
  863. +   Copyright (C) 1985, 1986, 1992, 1994, 1996 Free Software Foundation, Inc.
  864. +
  865. +This file is part of GNU Emacs.
  866. +
  867. +GNU Emacs is free software; you can redistribute it and/or modify
  868. +it under the terms of the GNU General Public License as published by
  869. +the Free Software Foundation; either version 2, or (at your option)
  870. +any later version.
  871. +
  872. +GNU Emacs is distributed in the hope that it will be useful,
  873. +but WITHOUT ANY WARRANTY; without even the implied warranty of
  874. +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  875. +GNU General Public License for more details.
  876. +
  877. +You should have received a copy of the GNU General Public License
  878. +along with GNU Emacs; see the file COPYING.  If not, write to
  879. +the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  880. +Boston, MA 02111-1307, USA.  */
  881. +
  882. +/* This file was put together by Michael K. Johnson and Rik Faith.  */
  883. +
  884. +
  885. +/*
  886. + *    Define symbols to identify the version of Unix this is.
  887. + *    Define all the symbols that apply correctly.
  888. + */
  889. +
  890. +/* #define UNIPLUS */
  891. +/* #define USG5 */
  892. +#define USG
  893. +/* #define BSD */
  894. +#define LINUX
  895. +
  896. +/* SYSTEM_TYPE should indicate the kind of system you are using.
  897. + It sets the Lisp variable system-type.  */
  898. +
  899. +#define SYSTEM_TYPE "linux"        /* All the best software is free. */
  900. +
  901. +/* Check the version number of Linux--if it is at least 1.2.0,
  902. +   it is safe to use SIGIO.  */
  903. +#ifndef NOT_C_CODE
  904. +#ifdef emacs
  905. +#ifdef HAVE_LINUX_VERSION_H
  906. +#include <linux/version.h>
  907. +
  908. +#if LINUX_VERSION_CODE > 0x10200
  909. +#define LINUX_SIGIO_DOES_WORK
  910. +#endif /* LINUX_VERSION_CODE > 0x10200 */
  911. +#endif /* HAVE_LINUX_VERSION_H */
  912. +#endif /* emacs */
  913. +#endif /* NOT_C_CODE */
  914. +
  915. +/* Letter to use in finding device name of first pty,
  916. +  if system supports pty's.  'p' means it is /dev/ptyp0  */
  917. +
  918. +#define FIRST_PTY_LETTER 'p'
  919. +
  920. +/*
  921. + *    Define HAVE_TERMIOS if the system provides POSIX-style
  922. + *    functions and macros for terminal control.
  923. + */
  924. +
  925. +#define HAVE_TERMIOS
  926. +
  927. +/*
  928. + *    Define HAVE_PTYS if the system supports pty devices.
  929. + */
  930. +
  931. +#define HAVE_PTYS
  932. +
  933. +/* Uncomment this later when other problems are dealt with -mkj */
  934. +
  935. +#define HAVE_SOCKETS
  936. +
  937. +/* Define this symbol if your system has the functions bcopy, etc. */
  938. +
  939. +#define BSTRING
  940. +
  941. +/* subprocesses should be defined if you want to
  942. +   have code for asynchronous subprocesses
  943. +   (as used in M-x compile and M-x shell).
  944. +   This is generally OS dependent, and not supported
  945. +   under most USG systems. */
  946. +
  947. +#define subprocesses
  948. +
  949. +/* define MAIL_USE_FLOCK if the mailer uses flock
  950. +   to interlock access to /usr/spool/mail/$USER.
  951. +   The alternative is that a lock file named
  952. +   /usr/spool/mail/$USER.lock.  */
  953. +
  954. +/* Both are used in Linux by different mail programs.  I assume that most
  955. +   people are using newer mailers that have heard of flock.  Change this
  956. +   if you need to. */
  957. +
  958. +#define MAIL_USE_FLOCK
  959. +
  960. +/* Define CLASH_DETECTION if you want lock files to be written
  961. +   so that Emacs can tell instantly when you try to modify
  962. +   a file that someone else has modified in his Emacs.  */
  963. +
  964. +#define CLASH_DETECTION
  965. +
  966. +/* Here, on a separate page, add any special hacks needed
  967. +   to make Emacs work on this system.  For example,
  968. +   you might define certain system call names that don't
  969. +   exist on your system, or that do different things on
  970. +   your system and must be used only through an encapsulation
  971. +   (Which you should place, by convention, in sysdep.c).  */
  972. +
  973. +/* On POSIX systems the system calls are interruptible by signals
  974. + that the user program has elected to catch.  Thus the system call
  975. + must be retried in these cases.  To handle this without massive
  976. + changes in the source code, we remap the standard system call names
  977. + to names for our own functions in sysdep.c that do the system call
  978. + with retries. */
  979. +
  980. +#define read sys_read
  981. +#define write sys_write
  982. +#define open sys_open
  983. +#define close sys_close
  984. +
  985. +#define INTERRUPTIBLE_OPEN
  986. +#define INTERRUPTIBLE_CLOSE
  987. +#define INTERRUPTIBLE_IO
  988. +
  989. +/* If you mount the proc file system somewhere other than /proc
  990. +   you will have to uncomment the following and make the proper
  991. +   changes */
  992. +
  993. +/* #define LINUX_LDAV_FILE "/proc/loadavg" */
  994. +
  995. +/* This is needed for dispnew.c:update_frame */
  996. +
  997. +#ifdef emacs
  998. +#include <stdio.h>  /* Get the definition of _IO_STDIO_H.  */
  999. +#if defined(_IO_STDIO_H) || defined(_STDIO_USES_IOSTREAM)
  1000. +/* new C libio names */
  1001. +#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
  1002. +  ((FILE)->_IO_write_ptr - (FILE)->_IO_write_base)
  1003. +#else /* !_IO_STDIO_H */
  1004. +/* old C++ iostream names */
  1005. +#define GNU_LIBRARY_PENDING_OUTPUT_COUNT(FILE) \
  1006. +  ((FILE)->_pptr - (FILE)->_pbase)
  1007. +#endif /* !_IO_STDIO_H */
  1008. +#endif /* emacs */
  1009. +
  1010. +/* Ask GCC where to find libgcc.a.  */
  1011. +#define LIB_GCC `$(CC) $(C_SWITCH_X_SITE) -print-libgcc-file-name`
  1012. +
  1013. +#ifndef __ELF__
  1014. +/* Linux has crt0.o in a non-standard place */
  1015. +#define START_FILES pre-crt0.o /usr/lib/crt0.o
  1016. +#else
  1017. +#define START_FILES pre-crt0.o /usr/lib/crt1.o /usr/lib/crti.o
  1018. +#endif
  1019. +
  1020. +/* As of version 1.1.51, Linux does not actually implement SIGIO.  */
  1021. +/* Here we assume that signal.h is already included.  */
  1022. +#ifdef emacs
  1023. +#ifdef LINUX_SIGIO_DOES_WORK
  1024. +#define INTERRUPT_INPUT
  1025. +#else
  1026. +#undef SIGIO
  1027. +/* Some versions of Linux define SIGURG and SIGPOLL as aliases for SIGIO.
  1028. +   This prevents lossage in process.c.  */
  1029. +#undef SIGURG
  1030. +#undef SIGPOLL
  1031. +#endif
  1032. +#endif
  1033. +
  1034. +/* This is needed for sysdep.c */
  1035. +
  1036. +#define NO_SIOCTL_H           /* don't have sioctl.h */
  1037. +
  1038. +#define HAVE_VFORK
  1039. +#define HAVE_SYS_SIGLIST
  1040. +#define HAVE_GETWD            /* cure conflict with getcwd? */
  1041. +#define HAVE_WAIT_HEADER
  1042. +
  1043. +#define SYSV_SYSTEM_DIR       /* use dirent.h */
  1044. +
  1045. +#define POSIX                 /* affects getpagesize.h and systty.h */
  1046. +#define POSIX_SIGNALS
  1047. +
  1048. +/* Best not to include -lg, unless it is last on the command line */
  1049. +#define LIBS_DEBUG
  1050. +#ifndef __ELF__
  1051. +#define LIB_STANDARD -lc /* avoid -lPW */
  1052. +#else
  1053. +#undef LIB_GCC
  1054. +#define LIB_GCC
  1055. +#define LIB_STANDARD -lgcc -lc -lgcc /usr/lib/crtn.o
  1056. +#endif
  1057. +
  1058. +/* Don't use -g in test compiles in configure.
  1059. +   This is so we will use the same shared libs for that linking
  1060. +   that are used when linking temacs.  */
  1061. +#ifdef THIS_IS_CONFIGURE
  1062. +#define C_DEBUG_SWITCH
  1063. +#endif
  1064. +
  1065. +/* Let's try this out, just in case.
  1066. +   Nah.  Rik Faith <faith@cs.unc.edu> says it doesn't work well.  */
  1067. +/* #define SIGNALS_VIA_CHARACTERS */
  1068. +
  1069. +/* Rob Malouf <malouf@csli.stanford.edu> says:
  1070. +   SYSV IPC is standard a standard part of Linux since version 0.99pl10,
  1071. +   and is a very common addition to previous versions.  */
  1072. +
  1073. +#ifdef TERM
  1074. +#define LIBS_SYSTEM -lclient
  1075. +#define C_SWITCH_SYSTEM -D_BSD_SOURCE -I/usr/src/term
  1076. +#else
  1077. +/* alane@wozzle.linet.org says that -lipc is not a separate library,
  1078. +   since libc-4.4.1.  So -lipc was deleted.  */
  1079. +#define LIBS_SYSTEM
  1080. +#define C_SWITCH_SYSTEM -D_BSD_SOURCE
  1081. +#endif
  1082. +
  1083. +/* Paul Abrahams <abrahams@equinox.shaysnet.com> says this is needed.  */
  1084. +#define LIB_MOTIF -lXm -lXpm
  1085. +
  1086. +#ifdef HAVE_LIBNCURSES
  1087. +#define TERMINFO
  1088. +#define LIBS_TERMCAP -lncurses
  1089. +#endif
  1090. +
  1091. +#define HAVE_SYSVIPC
  1092. +
  1093. +#ifdef __ELF__
  1094. +#define UNEXEC unexelf.o
  1095. +#define UNEXEC_USE_MAP_PRIVATE
  1096. +#endif
  1097. +
  1098. +#ifdef LINUX_QMAGIC
  1099. +
  1100. +#define HAVE_TEXT_START
  1101. +#define UNEXEC unexsunos4.o
  1102. +#define N_PAGSIZ(x) PAGE_SIZE
  1103. +
  1104. +#else /* not LINUX_QMAGIC */
  1105. +
  1106. +#define A_TEXT_OFFSET(hdr) (N_MAGIC(hdr) == QMAGIC ? sizeof (struct exec) : 0)
  1107. +#define A_TEXT_SEEK(hdr) (N_TXTOFF(hdr) + A_TEXT_OFFSET(hdr))
  1108. +#define ADJUST_EXEC_HEADER \
  1109. +  unexec_text_start = N_TXTADDR(ohdr) + A_TEXT_OFFSET(ohdr)
  1110. +
  1111. +#endif /* not LINUX_QMAGIC */
  1112. +
  1113. +#if 0
  1114. +/* In 19.23 and 19.24, configure sometimes fails to define these.
  1115. +   It has to do with the fact that configure uses CFLAGS when linking
  1116. +   while Makefile.in.in (erroneously) fails to do so when linking temacs.  */
  1117. +#ifndef HAVE_GETTIMEOFDAY
  1118. +#define HAVE_GETTIMEOFDAY
  1119. +#endif
  1120. +#ifndef HAVE_MKDIR
  1121. +#define HAVE_MKDIR
  1122. +#endif
  1123. +#ifndef HAVE_RMDIR
  1124. +#define HAVE_RMDIR
  1125. +#endif
  1126. +#ifndef HAVE_XSCREENNUMBEROFSCREEN
  1127. +#define HAVE_XSCREENNUMBEROFSCREEN
  1128. +#endif
  1129. +#endif /* 0 */
  1130. +
  1131. +/* This is to work around mysterious gcc failures in some system versions.
  1132. +   It is unlikely that Emacs changes will work around this problem;
  1133. +   therefore, this should remain permanently.  */
  1134. +#ifndef HAVE_XRMSETDATABASE
  1135. +#define HAVE_XRMSETDATABASE
  1136. +#endif
  1137. +
  1138. +/* The regex.o routines are a part of the GNU C-library used with Linux.  */
  1139. +/* However, sometimes they disagree with the src/regex.h that comes with Emacs,
  1140. +   and that can make trouble in etags.c because it gets the regex.h from Emacs
  1141. +   and the function definitions in libc.  So turn this off.  */
  1142. +/* #define REGEXP_IN_LIBC */
  1143. +
  1144. +/* Use BSD process groups, but use setpgid() instead of setpgrp() to
  1145. +   actually set a process group. */
  1146. +
  1147. +#define BSD_PGRPS
  1148. +#define setpgrp(pid,pgid) setpgid((pid),(pgid))
  1149.